<extend name="Public/base"/>
<block name="body">
    <form class="well form-inline " method="get" action="{:U('')}">


        <div class="form-group">

            <select class=" "  name="are" >

                <option value="">全部片区</option>

                <volist name=":F('Var_are')" id="vo"  >

                    <php>$clecked=($vo[name]==I('get.are'))?'selected':'';</php>


                    <option value="{$vo.name}" {$clecked}>{$vo.name}</option>
                </volist>


            </select>
        </div>


        <div class="form-group">

            <select class=" "  name="shop_id" >

                <option value="">全部提货站</option>
                <option value="kong">没有分配</option>
                <volist name=":F('Shop')" id="vo"  >

                    <php>$clecked=($vo[id]==I('get.shop_id'))?'selected':'';</php>


                    <option value="{$vo.id}" {$clecked}>{$vo.name}</option>
                </volist>
            </select>
        </div>





        <div class="form-group">

            <input type="text" class="input length_2" name="keyword" style="width:200px;" value="{:I('get.keyword')}" placeholder="请输入关键字...">
        </div>
        <div class="form-group">
            <button class="btn btn-xs btn-info" data-toggle="tooltip" title="搜索">
                <i class="icon-search bigger-110"></i>


            </button>

            <a  data-toggle="tooltip" title="清除搜索项"  href="{:U(index)}" class="tooltip-danger btn btn-xs btn-danger"><i class="icon-remove bigger-110"></i></a>
        </div>

    </form>






<form class="J_ajaxForm" action="{:U('chuli')}" method="post">
    <div class="table_list">
        <table class="table table-striped table-bordered table-hover table-responsive" >
            <thead>
            <tr>

                <th width="16"><label><input type="checkbox" class="check-all"></label></th>

                <th width="50">ID</th>
                <th>名字</th>
                <th>片区</th>
                <th>提货站</th>
                <th width="320">操作</th>
            </tr>
            </thead>
            <tbody>

            <foreach name="list" item="vo">
                <tr>
                    <td><input type="checkbox" class="ids"  name="ids[]" value="{$vo.id}" ></td>
                    <td>{$vo.id}</td>
                    <td>{$vo.name}</td>
                    <td>{$vo.are}</td>
                    <td>{$vo.shop_id|get_shop_name}</td>


                    <td>
                        <a href="{:U('edit',array('id'=>$vo['id']))}" >修改</a>|
                        <a href="{:U('delete',array('id'=>$vo['id']))}" class="ajax-del" >删除</a>
                    </td>
                </tr>
            </foreach>
            </tbody>
        </table>
    </div>



    <div class=" form-actions pt10 pb10 mb2 mt10 clearfix">


        <div class="pull-left">
        <button class="btn btn-xs btn-danger ajax-post  confirm" data-subcheck="1" url="{:U('delete')}" target-form="J_ajaxForm" type="submit">
            删除
        </button>
        </div>
        <div class="pull-right">
        <select class=" plus  input-large"  name="shop_id" >

            <option value="">请选择</option>
            <volist name=":F('Shop')" id="vo"  >

                <php>$clecked=($vo[id]==I('get.shop_id'))?'selected':'';</php>


                <option value="{$vo.id}" {$clecked}>{$vo.name}</option>
            </volist>
        </select>


        <button class="btn btn-xs btn-purple ajax-post  confirm" data-subcheck="1"  target-form="J_ajaxForm" type="submit">
            设置提货站
        </button>

            </div>
    </div>

  </form>


</block>


<block name="script">

        </block>